﻿namespace Zo.Events
{
    /// <summary>
    /// 事件源。
    /// </summary>
    public interface IEventStore
    {
        /// <summary>
        /// 保存事件。
        /// </summary>
        /// <typeparam name="TEvent">事件类型。</typeparam>
        /// <param name="event">事件。</param>
        void Save<TEvent>(TEvent @event) where TEvent : IEvent;
    }
}